﻿<?xml version="1.0" encoding="utf-8"?>
<doc>
  <assembly>
    <name>TimePicker</name>
  </assembly>
  <members>
    <member name="T:MKB.TimePicker.TimeSelector">
      <example>
        <p>
          <strong>
            <font color="#756f51" size="2">Controls defined declaratively:</font> <br /></strong>
          <font size="2">&lt;MKB:timeselector ID="TimeSelector1" runat="server" MinuteIncrement="15" /&gt;<br /><br />&lt;asp:Label ID="lblTS1" runat="server" Text="Postback value: " BackColor="#FFFF99" Width="359px" /&gt;<br /><br />&lt;MKB:TimeSelectorAvailabilityValidator ID="TimeSelectorAvailabilityValidator1" <br />runat="server" ControlToValidate="TimeSelector1" Display="Dynamic" ErrorMessage="That time is already taken!" /&gt;</font>
        </p>
        <font color="#dedecb" size="2">
          <p />
        </font>
        <strong>
          <font color="#756f51" size="2">Code-Behind, Validated Example:</font> <br /></strong>
        <font size="2">protected void Page_Load(object sender, EventArgs e)<br />{<br />    List&lt;DateTime&gt; list = new List&lt;DateTime&gt;();<br />    list.Add(DateTime.Now);<br />    list.Add(DateTime.Now.AddSeconds(30));<br />    list.Add(DateTime.Now.AddMinutes(30));</font>
        <p>
          <font size="2">    TimeSelectorAvailabilityValidator1.AppointmentList = list;<br />    TimeSelectorAvailabilityValidator1.AppointmentLengthInMinutes = 90; <br />}</font>
          <br />
          <br />
          <font size="2">protected void Button1_Click(object sender, EventArgs e)<br />{<br />    if (Page.IsValid)<br />    {<br />        lblTS1.Text = TimeSelector1.Date.ToLongDateString() + ", " + TimeSelector1.Date.ToLongTimeString();<br />    }<br />}<font color="#413e2e"><font color="#dedecb" /></font></font>
        </p>
      </example>
    </member>
    <member name="T:MKB.TimePicker.TimeSelectorAvailabilityValidator">
      <summary>
        <p>Takes a List&lt;DateTime&gt; value and compares  those values against the submitted DateTime of the TimeSelector. Valid if DateTime values are not within range of the List&lt;DateTime&gt; values +- AppointmentLengthInMinutes.</p>
      </summary>
      <example>
        <p>
          <font size="2">
            <strong>Validator Example, AllowSecondEditing set to false</strong>: <br /><font size="1">&lt;MKB:timeselector ID="TimeSelector3" runat="server" MinuteIncrement="15" /&gt; &lt;MKB:TimeSelectorAvailabilityValidator ID="TimeSelectorAvailabilityValidator1" runat="server" ControlToValidate="TimeSelector3" Display="Dynamic" ErrorMessage="That time is already taken!" /&gt;</font></font>
        </p>
        <p>
          <font size="2">
            <b>Validator Code Behind</b>: <br /></font>
          <font size="1">List&lt;DateTime&gt; list = new List&lt;DateTime&gt;(); <br /><br />list.Add(DateTime.Now); <br />list.Add(DateTime.Now.AddSeconds(30)); <br />list.Add(DateTime.Now.AddMinutes(30)); <br />list.Add(DateTime.Now.AddHours(3)); </font>
        </p>
        <p>
          <font size="1">TimeSelectorAvailabilityValidator1.AppointmentList = list; TimeSelectorAvailabilityValidator1.AppointmentLengthInMinutes = 90; </font>
        </p>
      </example>
    </member>
    <member name="P:MKB.TimePicker.TimeSelector.AmPm">
      <remarks>test  remarks</remarks>
      <value>test value</value>
      <example>
        <p>this is a test example</p>
        <p>ampm=false;</p>
      </example>
    </member>
  </members>
</doc>